
/** 定义主框架下子页面的路由 */

import { UserRole } from '@shared/types';
import { RouteItem } from '../types';

const routes: RouteItem[] = [
    { 
        path: '/dashboard', 
        view: () => import('management/pages/Dashboard'), 
        isHome: true 
    },
    { 
        path: '/company/create', 
        view: () => import('management/pages/Company/CompanyCreate'),
        // roles: [ UserRole.ACCOUNTING ] 
    },
    { 
        path: '/company/detail', 
        view: () => import('management/pages/Company/CompanyDetail') 
    },
    { 
        path: '/company', 
        view: () => import('management/pages/Company/CompanyList') 
    },
];

export default routes;